import { createRouter, createWebHistory } from 'vue-router'
import Login from '@/views/Login.vue'
import Home from '@/views/Home.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
  {
  path: '/setup',
  component: ParentLife
  },
  {
  path: '/life',
  component: () => import('@/views/ParentLife.vue')
  },
  {

  path: '/',
  redirect: '/login'
  },
  {
  name: 'login',
  path: '/login',
  component: Login
  },
  {
  name: 'home',
  path: '/home',
  component: Home,
  children: [
  // {
  // name: 'users',
  // path: '/users',
  // component: () => import('@/views/Users.vue')
  // },
  {
  name: 'nurselevel',
  path: '/home/nurselevel',
  component: () => import('@/views/NurseLevel.vue')
  }
  ]
  }
  ],
})

export default router
